<template>
  <van-row type="flex" class="con movie">

    <van-col class="div2" span="1"> </van-col>
    <van-col class="yu" span="5">
      <div id="projectorContainer">
        <div class="projectorLight">
          <div class="cover"></div>
          <div class="cover"></div>
        </div>

        <div class="projectorBody">
          <div class="lensHold"></div>
          <div class="lens"></div>
        </div>

        <div class="filmDisk" id="film1">
          <div class="fdBack">
            <div class="fdFilm"></div>
            <div class="fdBar"></div>
            <div class="fdBar2"></div>
            <div class="fdCover"></div>
          </div>
        </div>

        <div class="filmDisk" id="film2">
          <div class="fdBack">
            <div class="fdFilm"></div>
            <div class="fdBar"></div>
            <div class="fdBar2"></div>
            <div class="fdCover"></div>
          </div>
        </div>
      </div>
    </van-col>
    <van-col class="imgbox" span="14">
      <div class="img" v-if="Detail">
        <video
          :src="`${Detail.videourl}`"
          autoplay=""
          loop=""
          muted=""
          height="123px"
        ></video>
      </div>
    </van-col>
    <van-col class="right2" span="4">
      <div>想看</div>
      <div>看过</div>
    </van-col>
    <van-col class="div4" span="1"></van-col>
  </van-row>
</template>

<script>
export default {
  name: "YuGao.vue",
  props: {
    Detail: {
      type: Object / Array,
    },
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="less" scoped>
.con {
  
    border: 1px solid #ccc;
  position: relative;
  overflow: hidden;
 
     background-color: #282828;
   
    background-image: 
        radial-gradient(black 15%, transparent 16%), 
        radial-gradient(black 15%, transparent 16%), 
        radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%), 
        radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 20%);
    background-position: 
        0 0px, 
        8px 8px, 
        0 1px, 
        8px 9px;
    background-size: 16px 16px;
}

.div2 {
  position: absolute;
  right: 0;
  width: 3px;
  height: 200px;
  background: #2c1c1e;
  transition: 1s;
  transform: translateY(-100%);
  animation: animate2 4s 1s linear infinite;
}

@keyframes animate2 {
  0% {
    transform: translateY(-100%);
  }
  50%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes animate4 {
  0% {
    transform: translateY(100%);
  }
  50%,
  100% {
    transform: translateY(-100%);
  }
}

.overimg {
  position: relative;
  display: block; /* overflow: hidden;
*/
}

.light {
  cursor: pointer;
  position: absolute;
  left: -180px;
  top: 0;

  background-image: -webkit-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0),
    #6a4c4b,
    rgba(255, 255, 255, 0)
  );
  background-image: -moz-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0),
    #6a4c4b,
    rgba(255, 255, 255, 0)
  );
  background-image: -o-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0),
    #6a4c4b,
    rgba(255, 255, 255, 0)
  );
  background-image: -ms-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0),
    #6a4c4b,
    rgba(255, 255, 255, 0)
  );
  background-image: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0),
    #6a4c4b,
    rgba(255, 255, 255, 0)
  );

  -webkit-transform: skewx(-25deg);
  -moz-transform: skewx(-25deg);
  -o-transform: skewx(-25deg);
  -ms-transform: skewx(-25deg);
  transform: skewx(-25deg);
}

.overimg:hover .light {
  left: 180px;

  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
  transition: 0.5s;
}
.right2 {
  opacity: 0.8;
  div {
    background-color: #6a4c4b;
    margin: 20px 0 45px 14px;
    border-radius: 8px;
    text-align: center;
  line-height: 24px;
font-size: 14px;
font-weight:400;
    border: 1px solid #2c1c1e;
    height: 24px;
  }
}
.yu {
  span {
    text-align: center;
    line-height: 44px;
    height: 44px;
  }
}
// 电影头部
.imgbox {
  .img {
    box-shadow: 10px 4px 10px 1px rgba(0, 0, 0, 0.9); /*阴影半径为5px*/

    border: 1px dotted #000;
    width: 100%;
    border-right: none;
     border-left: none;
      border-bottom: none;
    border-radius: 5px;

    video {
      width: 100%;
    }
  }
}
.movie {
  height: 143px;
  border-radius: 10px;
  margin:20px ;
  margin-top: 0px;
  margin-bottom: 15px;

  van-col {
    img:nth-child(1) {
      display: block;
      border-radius: 5px;
    }
  }
  h3 {
    color: white;
  }
  p {
    margin: 0;
    padding: 0;
    color: #786f6f;
    font-size: 12px;
    font-weight: 350;
    margin-top: 5px;
  }

  h3 {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
  }
  .van-col:nth-child(3) {
    padding: 5px;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
  }

  .van-col:nth-child(1) {
    padding: 5px;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
  }
  .van-col:nth-child(2) {
    padding: 5px;
    .p2 {
      padding-top: 10px;
    }
  }
  .van-col img {
    width: 100%;
    height: 115px;
    border-radius: 5px;
  }
}

body {
  background-color: rgb(80, 100, 110);
}
#projectorContainer {
  position: relative;
  height: 40px;
  width: 40px;
  margin: 50px auto;
}
.filmDisk {
  position: absolute;
  height: 60%;
  width: 60%;
  animation: rot 2s infinite linear;
}
.fdBack {
  height: 100%;
  width: 100%;
  background-color: gray;
  border-radius: 50%;
}
.fdFilm {
  position: absolute;
  height: 70%;
  width: 70%;
  top: 15%;
  left: 15%;
  background-color: rgb(50, 50, 50);
  border-radius: 50%;
}
.fdBar {
  position: absolute;
  height: 95%;
  width: 15%;
  top: 2.5%;
  left: 42.5%;
  background-color: gray;
}
.fdBar2 {
  position: absolute;
  width: 95%;
  height: 15%;
  top: 42.5%;
  left: 2.5%;
  background-color: gray;
}
.fdCover {
  position: absolute;
  height: 35%;
  width: 35%;
  top: 32.5%;
  left: 32.5%;
  background-color: gray;
  border-radius: 50%;
}
#film1 {
  top: -5%;
  left: -20%;
}
#film2 {
  top: -5%;
  right: -5%;
}
.projectorBody {
  position: absolute;
  height: 60%;
  width: 90%;
  top: 40%;
  background-color: rgb(70, 70, 70);
  border-radius: 20px;
}
.lens {
  position: absolute;
  height: 30%;
  width: 20%;
  left: 105%;
  top: 40%;
  background-color: gray;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.lensHold {
  position: absolute;
  height: 20%;
  width: 10%;
  left: 100%;
  top: 45%;
  background-color: gray;
}
.projectorLight {
  position: absolute;
  opacity: 0.8;
  height: 60%;
  width: 90%;
  left: 110%;
  top: 42.9%;
  background-color: rgb(255, 228, 196);
  animation: light 0.9s infinite;
}
.projectorLight :nth-child(1) {
  top: -15%;
  transform: rotate(-12deg);
}
.projectorLight :nth-child(2) {
  bottom: -15%;
  transform: rotate(12deg);
}
/*****
.cover background must be the same as the page background.
*****/
.cover {
  position: absolute;
  background: rgb(80, 100, 110);
  height: 40%;
  width: 115%;
  left: -10%;
  opacity: 1;
}
@keyframes rot {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes light {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0.8;
  }
}
</style>